import request from '@/utils/request'

// 查询天启官网配置列表
export function listTianqiconfig(query) {
  return request({
    url: '/system/tianqiconfig/list',
    method: 'get',
    params: query
  })
}

// 查询天启官网配置详细
export function getTianqiconfig(id) {
  return request({
    url: '/system/tianqiconfig/' + id,
    method: 'get'
  })
}

// 新增天启官网配置
export function addTianqiconfig(data) {
  return request({
    url: '/system/tianqiconfig',
    method: 'post',
    data: data
  })
}

// 修改天启官网配置
export function updateTianqiconfig(data) {
  return request({
    url: '/system/tianqiconfig',
    method: 'put',
    data: data
  })
}

// 删除天启官网配置
export function delTianqiconfig(id) {
  return request({
    url: '/system/tianqiconfig/' + id,
    method: 'delete'
  })
}
